package com.qqbot.model.user;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author fyq
 * @since 2023-03-02
 */
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 机器人QQ
     */
    private String bot;

    /**
     * QQ账号
     */
    private String qq;

    /**
     * 是否为主人账号
     */
    private Boolean master;

    @TableLogic
    private Boolean delLogic;

    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    @TableField(fill = FieldFill.INSERT_UPDATE, update = "now()")
    private Date modifyDate;
}
